<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Document   : menu
    Created on : Apr 13, 2011, 11:17:49 AM
    Author     : EaDeveloper
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:c="http://java.sun.com/jsp/jstl/core"
                 xmlns:pou="http://primefaces.org/ui">    
    <!-- ${facesContext.externalContext.requestContextPath} -->

    <h:panelGroup rendered="#{usuarioFc.loged}">
        <pou:panel style="width:100%;">
            <f:facet name="header">
                MI Credits                 
            </f:facet>
            <h:panelGrid style="width: 100%;">
                <h:panelGroup>
                    <pou:dock position="top" itemWidth="55" maxWidth="100">
                        <c:forEach items="#{mbSummary.unidadesDeNegocio}" var="unidad">
                            <pou:menuitem value="#{unidad.nombre}" icon="#{resource[unidad.rutaImagen]}" ajax="false" actionListener="#{mbIndex.loadPage('summary.xhtml')}">
                                <f:param name="unidadNegocio" value="#{unidad.id}"/>
                            </pou:menuitem>
                        </c:forEach>
                    </pou:dock>
                </h:panelGroup>
            </h:panelGrid>
        </pou:panel>
    </h:panelGroup>
</ui:composition>
